package com.qf.day12;

/**
 * @author wgy
 * @version V1.0
 * @Project day12
 * @Package com.qf.day12
 * @Description: ${TODO}
 * @Date 2021/6/2 9:32
 */
public class Animal {
    private String breed;
    private int age;
    private String sex;

    public Animal(){

    }

    public Animal(String breed, int age, String sex) {
        this.breed = breed;
        this.age = age;
        this.sex = sex;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void eat(){
        System.out.println("动物吃东西...");
    }
    public void sleep(){
        System.out.println("动物开始休息...");
    }
    public void show(){
        System.out.println("动物信息: 品种"+this.breed+" 年龄:"+age+" 性别:"+this.sex);
    }
}
